package com.example.spring.multi.module.logic.controller.table;


import com.example.spring.multi.module.logic.bean.IotDevicePointProtocol;
import com.example.spring.multi.module.logic.service.IotDevicePointProtocolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 测点协议表 前端控制器
 * </p>
 *
 * @author Surging
 * @since 2023-07-12
 */
@RestController
@RequestMapping("/iotDevicePointProtocol")
public class IotDevicePointProtocolController {
    @Autowired
    private IotDevicePointProtocolService devicePointProtocolService;

    //查询list
    //http://localhost:12888/iotDevicePointProtocol/list
    @GetMapping("/list")
    public List<IotDevicePointProtocol> list() {
        return devicePointProtocolService.list();
    }

    @GetMapping
    public String test() {
        return "ok";
    }

}
